package org.tvolkov.mycompany

class Division {
	String name;
	String phoneNumber;
	
	Company company;
	
	static hasMany = [projects: Project]
	
	static belongsTo = [company: Company]
	
    static constraints = {
		name blank: false, unique: true
		phoneNumber nullable: true
    }
	
	String toString(){
		return name;
	}
}
